package com.glacier.yuyuan.modules.admin.sys.domain;

import com.glacier.common.core.domain.TreeEntity;

/**
 * date 2022-11-04 16:52
 * 区域
 *
 * @author glacier
 * @version 1.0
 */
public class Area extends TreeEntity<Area> {
	private static final long serialVersionUID = -4812878209843570046L;

	/**
	 * 区域编码
	 */
	private String code;

	/**
	 * 区域类型（1：国家；2：省份、直辖市；3：地市；4：区县）
	 */
	private String type;

	public Area() {
	}

	public Area(String id) {
		super(id);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Area{" +
				"code='" + code + '\'' +
				", type='" + type + '\'' +
				", title='" + title + '\'' +
				", parentId='" + parentId + '\'' +
				", sort=" + sort +
				", children=" + children +
				", createBy='" + createBy + '\'' +
				", createTime=" + createTime +
				", updateBy='" + updateBy + '\'' +
				", updateTime=" + updateTime +
				", remark='" + remark + '\'' +
				", id='" + id + '\'' +
				'}';
	}
}
